import request from '@/utils/request'

// 获取出入库报表(采购)表头
export function psiElsPurchaserReportHead(data) {
  return request({
    url: 'PsiReport/queryElsPurchaserReportListHead',
    method: 'post',
    data: data
  })
}
// 获取出入库报表(总监)表头
export function psiElsDirectorReportHead(data) {
  return request({
    url: 'PsiReport/queryElsDirectorReportListHead',
    method: 'post',
    data: data
  })
}
// 获取出入库报表(销售)表头
export function psiElsSalesReportHead(data) {
  return request({
    url: 'PsiReport/queryElsSalesmanReportListHead',
    method: 'post',
    data: data
  })
}
// 获取出入库报表(无价格)表头
export function psiElsNoPriceReportHead(data) {
  return request({
    url: 'PsiReport/queryElsNoPriceReportListHead',
    method: 'post',
    data: data
  })
}

// 出入库报表(采购)查询获取数据
export function psiElsPurchaserReportList(data) {
  return request({
    url: 'PsiReport/queryElsPurchaserReport',
    method: 'post',
    data: data
  })
}
// 出入库报表(总监)查询获取数据
export function psiElsDirectorReportList(data) {
  return request({
    url: 'PsiReport/queryElsDirectorReport',
    method: 'post',
    data: data
  })
}
// 出入库报表(销售)查询获取数据
export function psiElsSalesReportList(data) {
  return request({
    url: 'PsiReport/queryElsSalesmanReport',
    method: 'post',
    data: data
  })
}
// 出入库报表(无价格)查询获取数据
export function psiElsNoPriceReportList(data) {
  return request({
    url: 'PsiReport/queryElsNoPriceReport',
    method: 'post',
    data: data
  })
}

// 出入库报表导出(采购)
export function psiElsPurchaserReportExport(data) {
  return request({
    url: 'PsiReport/elsPurchaserReportExport',
    method: 'post',
    data: data,
    responseType: 'blob'
  })
}
// 出入库报表导出(总监)
export function psiElsDirectorReportExport(data) {
  return request({
    url: 'PsiReport/elsDirectorReportExport',
    method: 'post',
    data: data,
    responseType: 'blob'
  })
}
// 出入库报表导出(销售)
export function psiElsSalesReportExport(data) {
  return request({
    url: 'PsiReport/elsSalesmanReportExport',
    method: 'post',
    data: data,
    responseType: 'blob'
  })
}
// 出入库报表导出(无价格)
export function psiElsNoPriceReportExport(data) {
  return request({
    url: 'PsiReport/elsNoPriceReportExport',
    method: 'post',
    data: data,
    responseType: 'blob'
  })
}
